{
	template:`
	<a-page-header title="编辑会员信息"  >
		<template #extra>
			<a-button type="primary" @click="save">保存</a-button>
			<m-back @click="back(false);">关闭</m-back>
		</template>
		<a-card :hoverable="true" :bodyStyle="{padding:'20px 20px 0'}">
			<a-form class="index-form" :wrapper-col="{span:24}">
				<a-row :gutter="10">
					<a-col :span="12">
						<a-form-item label="姓名" class="index-form-item">
							<a-input v-model:value="model.realName" placeholder="请输入姓名"/>
						</a-form-item>
					</a-col>
					<a-col :span="12">
						<a-form-item label="手机号" class="index-form-item">
							<a-input v-model:value="model.phoneNum" placeholder="请输入手机号"/>
						</a-form-item>
					</a-col>
					<a-col :span="12">
						<a-form-item label="生日" class="index-form-item">
							<a-date-picker v-model:value="model.birthday" placeholder="请选择生日" format="YYYY-MM-DD" valueFormat="YYYY-MM-DD" style="width:100%;" />
						</a-form-item>
					</a-col>
					<a-col :span="12">
						<a-form-item label="会员级别" class="index-form-item">
							<a-select v-model:value="model.level.oid" placeholder="请选择会员级别" :options="dictOptions('m.member.manage.model.MemberLevel')" show-search :filter-option="selectFilter"/>
						</a-form-item>
					</a-col>
					<a-col :span="24">
						<a-form-item label="备注" class="index-form-item">
							<a-textarea v-model:value="model.remark" placeholder="请输入备注" auto-size/>
						</a-form-item>
					</a-col>
				</a-row>
			</a-form>
		</a-card>
	</a-page-header>
	`,
	props: ['localeZh','param','parentVue'],
	data:function(){
		return {
			model:{"level":{}}
		};
	},
	mounted(){
	    this.model=this.param.model;
	},
	methods:{
		save:function(){
			this.requestData('action/member/manage/memberInfo/doSave',
				{model:this.model},
				data=>{
					if(!data.code){
						this.$message.success(data.msg);
						this.back(true);
					}else{
						this.$message.error(data.msg);
					}
				}
			);
		},
	}
}